Optimal. Leaf size=58 \[ -\frac {\sqrt {a} (b c-a d) \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{b^{5/2}}+\frac {x (b c-a d)}{b^2}+\frac {d x^3}{3 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {459, 321, 205} \[ \frac {x (b c-a d)}{b^2}-\frac {\sqrt {a} (b c-a d) \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{b^{5/2}}+\frac {d x^3}{3 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 321
Rule 459
Rubi steps
\begin {align*} \int \frac {x^2 \left (c+d x^2\right )}{a+b x^2} \, dx &=\frac {d x^3}{3 b}-\frac {(-3 b c+3 a d) \int \frac {x^2}{a+b x^2} \, dx}{3 b}\\ &=\frac {(b c-a d) x}{b^2}+\frac {d x^3}{3 b}-\frac {(a (b c-a d)) \int \frac {1}{a+b x^2} \, dx}{b^2}\\ &=\frac {(b c-a d) x}{b^2}+\frac {d x^3}{3 b}-\frac {\sqrt {a} (b c-a d) \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{b^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 57, normalized size = 0.98 \[ \frac {\sqrt {a} (a d-b c) \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{b^{5/2}}+\frac {x (b c-a d)}{b^2}+\frac {d x^3}{3 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.47, size = 129, normalized size = 2.22 \[ \left [\frac {2 \, b d x^{3} - 3 \, {\left (b c - a d\right )} \sqrt {-\frac {a}{b}} \log \left (\frac {b x^{2} + 2 \, b x \sqrt {-\frac {a}{b}} - a}{b x^{2} + a}\right ) + 6 \, {\left (b c - a d\right )} x}{6 \, b^{2}}, \frac {b d x^{3} - 3 \, {\left (b c - a d\right )} \sqrt {\frac {a}{b}} \arctan \left (\frac {b x \sqrt {\frac {a}{b}}}{a}\right ) + 3 \, {\left (b c - a d\right )} x}{3 \, b^{2}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.44, size = 58, normalized size = 1.00 \[ -\frac {{\left (a b c - a^{2} d\right )} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b} b^{2}} + \frac {b^{2} d x^{3} + 3 \, b^{2} c x - 3 \, a b d x}{3 \, b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 68, normalized size = 1.17 \[ \frac {d \,x^{3}}{3 b}+\frac {a^{2} d \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}\, b^{2}}-\frac {a c \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}\, b}-\frac {a d x}{b^{2}}+\frac {c x}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.16, size = 54, normalized size = 0.93 \[ -\frac {{\left (a b c - a^{2} d\right )} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b} b^{2}} + \frac {b d x^{3} + 3 \, {\left (b c - a d\right )} x}{3 \, b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 70, normalized size = 1.21 \[ x\,\left (\frac {c}{b}-\frac {a\,d}{b^2}\right )+\frac {d\,x^3}{3\,b}+\frac {\sqrt {a}\,\mathrm {atan}\left (\frac {\sqrt {a}\,\sqrt {b}\,x\,\left (a\,d-b\,c\right )}{a^2\,d-a\,b\,c}\right )\,\left (a\,d-b\,c\right )}{b^{5/2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.33, size = 90, normalized size = 1.55 \[ x \left (- \frac {a d}{b^{2}} + \frac {c}{b}\right ) - \frac {\sqrt {- \frac {a}{b^{5}}} \left (a d - b c\right ) \log {\left (- b^{2} \sqrt {- \frac {a}{b^{5}}} + x \right )}}{2} + \frac {\sqrt {- \frac {a}{b^{5}}} \left (a d - b c\right ) \log {\left (b^{2} \sqrt {- \frac {a}{b^{5}}} + x \right )}}{2} + \frac {d x^{3}}{3 b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________